import request from '@/utils/request'

const baseURL = '/energyCompanies'

/**
 * 查询企业总体能源信息列表
 * @param districtBelong
 * @param startTime
 * @param endTime
 */
export function companiesList (districtBelong, startTime = '', endTime = '') {
  return request({
    url: `${baseURL}/companiesList`,
    method: 'post',
    data: {
      districtBelong,
      startTime,
      endTime,
    }
  })
}

/**
 * 查询区域总体能源信息列表
 * @param startTime
 * @param endTime
 */
export function areaList (startTime = '', endTime = '') {
  return request({
    url: `${baseURL}/areaList`,
    method: 'post',
    data: {
      startTime,
      endTime
    }
  })
}
